//
//  ModalLogin.m
//  wechatManager
//
//  Created by tangchunhui on 15/4/18.
//  Copyright (c) 2015年 tangchunhui. All rights reserved.
//

#import "ModalLogin.h"

@implementation ModalLogin
-(id)initWithUsername:(NSString *)username password:(NSString *)password{
    if (self = [super init]){
        self.username = username;
        self.password = password;
        
    }
    return self;
}

-(NSDictionary *)modalUrl{
    NSString *urlString =[NSString  stringWithFormat:@"http://ybxx.doctorcao.com/index.php/Home/Patient/login"];
    NSDictionary *postdata = @{@"username":self.username,@"password":self.password};
    
    NSDictionary *dic = @{@"url":urlString,
                          @"method":@"POST",
                          @"postdata":postdata
                          };
    return dic;
}


-(void)processSuccess:(NSDictionary *)results {
    NSLog(@"%@",results);

}



@end
